package com.stylefeng.guns.rest.modular.App.service;


import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.core.model.CommonKeyValue;
import com.stylefeng.guns.core.model.Pager;
import com.stylefeng.guns.rest.modular.App.model.OrderCustomerRelation;


import java.util.List;
import java.util.Map;
/**
  * 订单乘车人关系 Service接口
  * @author sasazaixian
  * @Date 2018-12-25 10:45 
 */
public interface IOrderCustomerRelationService extends IService<OrderCustomerRelation> {

    /**
     * 删除订单乘车人关系
     * @param orderCustomerRelation
     * @return     
     */
    int deleteOrderCustomerRelation(OrderCustomerRelation orderCustomerRelation, String token)throws Exception;
    /**
     * 批量删除订单乘车人关系
     * @param ids 主键ID数组
     * @return     
     */
    int deleteBatchOrderCustomerRelation(String[] ids, String token)throws Exception;
    /**
     * 查询订单乘车人关系列表
     * @param orderCustomerRelation 订单乘车人关系对象
     * @return     
     */
    List<OrderCustomerRelation> selectListOrderCustomerRelation(OrderCustomerRelation orderCustomerRelation, String token)throws Exception;

	/**
     * 分页查询订单乘车人关系列表
     * @param pager 分页对象
     * @return     
     */
    Map pageListOrderCustomerRelation(Pager pager, String token) throws Exception;

    /**
     * 同一个事务 互斥锁查询
     * @param orderCustomerRelation 订单乘车人关系对象
     * @return     
     */
    List<OrderCustomerRelation> selectListOrderCustomerRelationForUpdate(OrderCustomerRelation orderCustomerRelation)throws Exception;
    /**
     * 通过主键id查询的订单乘车人关系列表
     * @param id 主键id
     * @return     
     */
    OrderCustomerRelation findOrderCustomerRelationById(String id, String token)throws Exception;

    /**
     * 新增订单乘车人关系数据
     * @param orderCustomerRelation  订单乘车人关系对象
     * @return
     */
    int insertOrderCustomerRelation(OrderCustomerRelation orderCustomerRelation, String token) throws Exception ;
    /**
     * 更新订单乘车人关系数据
     * @param orderCustomerRelation 订单乘车人关系对象
     * @return     
     */
    int updateOrderCustomerRelation(OrderCustomerRelation orderCustomerRelation, String token) throws Exception ;


}
